package com.haiyan.demo16_static关键字修饰成员变量;

public class Test {
    public static void main(String[] args) {
        System.out.println(ChinesePeople.country);

        ChinesePeople p1=new ChinesePeople();
        p1.name="张三";
        p1.country="中国";
        System.out.println(p1.name+","+p1.country);

        ChinesePeople p2=new ChinesePeople();
        System.out.println(p2.name+","+p2.country);

        System.out.println(ChinesePeople.country);

        p2.country="中华人民共和国";
        System.out.println(p1.country);
    }
}
